package area;

public class TestShape {
	public static void main(String[] args) {
		Shape square = new Square(3);
		Shape circle = new Circle(2);
		System.out.println(square.getArea());
		System.out.println(circle.getArea());
		
		// 类型转换异常， Circle类型不能转换成Square类型
		/*Square sq = (Square)circle;
		System.out.println(sq.getArea());*/
	}

}
